<?php

class bluntrapps_scraper extends BlogScraper
{
    function __construct()
    {
        parent::__construct('bluntrapps');
    }    
    
    function getPostLinks()
    {
        return $this->xpath->query('//h2//a');
    }    
}

class bluntrapps_post_scraper extends PostScraper
{
	function getDate()
    {
        $date_node = $this->xpath->query("//span[@class='date']")->item(0)->nodeValue;

        if (strlen($date_node) > 4) 
        {
            $date = date('Y-m-d', strtotime($date_node));
            return $date;
        }        
    }
    
    function linkName($link)
    {
	    return $this->removeQuotes($link->parentNode->nodeValue);
    }
    

}

?>